package com.runa.protocol.dto;

import lombok.Getter;

/**
 * @author zhuj
 */
public class DtuReport implements IInterData<String> {

    private final String id;

    @Getter
    private String type;

    @Getter
    private boolean mustAck;

    @Getter
    private DtuReportAck ack;

    public DtuReport(String id) {
        this.id = id;
    }

    @Override
    public String getData() {
        return id;
    }

    public void setMustAck(boolean mustAck) {
        this.mustAck = mustAck;
    }

    public void setAck(DtuReportAck ack) {
        this.ack = ack;
    }

    public void setType(String type) {
        this.type = type;
    }
}
